package org.example.controller;

import com.alibaba.fastjson.JSON;
import org.example.pojo.Region;
import org.example.service.RegionService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class RegionController {

    @Resource
    private RegionService regionService;


    @RequestMapping("/type")
    public List<Region> selectType(){
        return regionService.selectType();
    }
}
